# -*- mode: snippet -*-
# name: device Cairo::CairoPNG
# key: CairoPNG@Cairo
# key: device#CairoPNG@Cairo
# contributor: Shuguang Sun
# expand-env: ((yas-wrap-around-region t))
# --
Cairo::CairoPNG(file = "$1", bg = \"${2:$$(yas-choose-value '("white" "transparent"))}\")
$0
invisible(dev.off())